package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IMiguVideoRetentAddConfigDao;
import org.jsbd.boss.domian.MiguVideoRetentAddConfig;

import org.springframework.stereotype.Repository;

@Repository("miguVideoRetentAddConfigDao")
public class MiguVideoRetentAddConfigDaoImpl extends CrackBaseDao implements IMiguVideoRetentAddConfigDao {

	@Override
	public void save(List<MiguVideoRetentAddConfig> list) {
		super.batchInsert("qy_migu_video_retent_add_config.insert_migu_video_retent_add_config", list);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<MiguVideoRetentAddConfig> getList(MiguVideoRetentAddConfig miguVideoRetentAddConfig) {
		return super.queryForList("qy_migu_video_retent_add_config.select_list", miguVideoRetentAddConfig);
	}

	@Override
	public Integer getListPageCount(MiguVideoRetentAddConfig miguVideoRetentAddConfig) {
		return super.queryForCount("qy_migu_video_retent_add_config.select_list_count", miguVideoRetentAddConfig);
	}

	@Override
	public void delete(List<Integer> ids) {
		super.batchUpdate("qy_migu_video_retent_add_config.delete_by_id", ids);
	}

	@Override
	public void deleteByMiguVideoId(Integer miguVideoId) {
		super.update("qy_migu_video_retent_add_config.delete_by_migu_video_id", miguVideoId);
	}

	@Override
	public int updateTaskNum(MiguVideoRetentAddConfig miguVideoRetentAddConfig) {
		return super.update("qy_migu_video_retent_add_config.update_task_num", miguVideoRetentAddConfig);
	}

}
